package com.xxh.myapp.entity;

import java.util.Date;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.io.Serializable;

/**
 * (Student)表实体类
 *
 * @author makejava
 * @since 2020-05-01 19:28:47
 */
@SuppressWarnings("serial")
public class Student extends Model<Student> {
    //学号
    @TableId
    private Integer sno;
    //姓名
    private String sname;
    //性别
    private String ssex;
    //年龄
    private Integer sage;
    
    private Integer majorId;
    
    private Date adtime;
    //年级
    private Integer grade;
    //班级的编号
    private Integer clno;


    public Integer getSno() {
        return sno;
    }

    public void setSno(Integer sno) {
        this.sno = sno;
    }

    public String getSname() {
        return sname;
    }

    public void setSname(String sname) {
        this.sname = sname;
    }

    public String getSsex() {
        return ssex;
    }

    public void setSsex(String ssex) {
        this.ssex = ssex;
    }

    public Integer getSage() {
        return sage;
    }

    public void setSage(Integer sage) {
        this.sage = sage;
    }

    public Integer getMajorId() {
        return majorId;
    }

    public void setMajorId(Integer majorId) {
        this.majorId = majorId;
    }

    public Date getAdtime() {
        return adtime;
    }

    public void setAdtime(Date adtime) {
        this.adtime = adtime;
    }

    public Integer getGrade() {
        return grade;
    }

    public void setGrade(Integer grade) {
        this.grade = grade;
    }

    public Integer getClno() {
        return clno;
    }

    public void setClno(Integer clno) {
        this.clno = clno;
    }

    /**
     * 获取主键值
     *
     * @return 主键值
     */
    @Override
    protected Serializable pkVal() {
        return this.sno;
    }
    }